package com.cysyz.mylib.mylibtools.livetelecast;

/**
 * Created by jiaoyujia on 2015/1/14.
 */
public class LiveTelecastSystemImpl {
    private LiveTelecastSystemEngine liveTelecastSystemEngine;

    public LiveTelecastSystemImpl(LiveTelecastSystemEngine liveTelecastSystemEngine) {
        this.liveTelecastSystemEngine = liveTelecastSystemEngine;
    }

    /**
     * 注册新的用户
     * @param user
     */
    public void register(User user) {
        String urlPostfix = "/webcast/user/created";
        Response response = liveTelecastSystemEngine.execute(urlPostfix, Response.class, user);
    }

    /**
     * 修改用户信息
     */
    public void editUser(User user) {
        String urlPostfix = "/webcast/user/update";
        liveTelecastSystemEngine.execute(urlPostfix, Response.class, user);
    }
}

